#  位置参数
from boltons.timeutils import relative_time


def power(x):
    return x *x

# 默认参数
def power(x,n=2):
    s =1
    while n >0:
        n=n-1
        s=s*x
    return s

# 可变参数
def calc (numbers):
    sum =0
    for n in numbers:
        sum = sum + n*n
    return sum

def calc(*numbers):
    sum =0
    for n in numbers:
        sum = sum +n*n
    return sum

#关键字参数
def person(name,age,**kw):
    if 'city' in kw:
        pass
    if 'job' in kw:
        pass
    print('name:',name,'age:',age,'other:',kw)
